package com.xgq.drink.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商品分类实体类
 * </p>
 *
 * @author xgq
 * @since 2025-02-23
 */
@Getter
@Setter
@TableName("product_categories")
public class Category implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "category_id", type = IdType.AUTO)
    private Integer categoryId;

    private String categoryName;

    private Integer parentId;

    private Byte level; // 数据库字段是 level，调整字段类型为 Byte

    private String reserveField1; // 数据库字段是 reserve_field1，调整字段名

    private String reserveField2; // 数据库字段是 reserve_field2，调整字段名
}